package com.bangdream.michelia.utils;

public class StausUtils {
    //课程状态转码换为文本
    public static String coursesStateToText(String stateCode){
        if(stateCode==null)
            return null;
        if(stateCode.equals("0")){
            return "未学习";
        }else if(stateCode.equals("1")){
            return "学习中";
        }else if(stateCode.equals("2")){
            return "已学完";
        }else {
            return null;
        }
    }
}
